#ifndef CASEEDITOR_H
#define CASEEDITOR_H

#include <QTcpSocket>
#include <QWidget>

namespace Ui {
class caseeditor;
}

class caseeditor : public QWidget
{
    Q_OBJECT

public:
    explicit caseeditor(QWidget *parent = nullptr);
    ~caseeditor();

private slots:
    void on_loadDataButton_clicked();

    void on_saveButton_clicked();

    void on_pushButton_clicked();

private:
    Ui::caseeditor *ui;
    void loadCaseData(); // 从数据库加载病例数据
    void saveCaseData(); // 将修改的病例数据保存到数据库
    QTcpSocket *tcpSocket;
};

#endif // CASEEDITOR_H
